<!-- 防区 》 防区主机 -->

<template>
  <CommonBody
    hasTree
    :tree="area_tree"
    :field="area_TREE_FIELD"
    :filterTip="`${CORE.MAP.ALARM}主机`"
    hasReset
    @change="toChange"
  >
    <template #search>
      <MySearch />
    </template>

    <template #table>
      <MyTable />
    </template>

    <MyModal />
  </CommonBody>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import store from './store'
import PointDefence from '@admin/views/System/Point/PointDefence'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'DefenceHost',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixStore(store)],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(
    require.context('@admin/views/Secure/Defence/DefenceList', true, /vue$/),
    require.context('./', true, /vue$/),
  ),

  /**
   * 本地方法 (轻量重要在前)
   */
  methods: PointDefence.methods,
}
</script>
